package article.entity;

import articleLabel.entity.ArticleLabelVO;
import blogData.entity.BlogDataVO;
import category.entity.CategoryVO;
import comment.entity.CommentVO;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;


public class ArticleVO {
    /**
     *  文章id
     */
    private Integer articleId;
    /**
     *  文章标题
     */
    private String title;
    /**
     *  文章发布的时间
     */
    private Date publishTime;
    /**
     *  内容
     */
    private String content;
    /**
     *  点击次数
     */
    private Integer viewNumber;


    /**
     * 设置父类--博客
     */
    private BlogDataVO blogDataVO;
    /**
     * 设置父类--分类
     */
    private CategoryVO categoryVO;
    /**
     * 子类 --连接表
     */
    private Set<ArticleLabelVO> articleLabelVOs=new HashSet();
    /**
     * 子类 --评论表
     */
    private Set<CommentVO> commentVOs=new HashSet();



    public Set<CommentVO> getCommentVOs() {
        return commentVOs;
    }

    public void setCommentVOs(Set<CommentVO> commentVOs) {
        this.commentVOs = commentVOs;
    }

    public Set<ArticleLabelVO> getArticleLabelVOs() {
        return articleLabelVOs;
    }

    public void setArticleLabelVOs(Set<ArticleLabelVO> articleLabelVOs) {
        this.articleLabelVOs = articleLabelVOs;
    }


    public CategoryVO getCategoryVO() {
        return categoryVO;
    }

    public void setCategoryVO(CategoryVO categoryVO) {
        this.categoryVO = categoryVO;
    }

    public BlogDataVO getBlogDataVO() {
        return blogDataVO;
    }

    public void setBlogDataVO(BlogDataVO blogDataVO) {
        this.blogDataVO = blogDataVO;
    }

    public Integer getArticleId() {
        return articleId;
    }

    public void setArticleId(Integer articleId) {
        this.articleId = articleId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getViewNumber() {
        return viewNumber;
    }

    public void setViewNumber(Integer viewNumber) {
        this.viewNumber = viewNumber;
    }
}
